package org.lyq.erp.auth.employee.pojo;

import java.util.List;

import org.lyq.erp.auth.department.pojo.Department;
import org.lyq.erp.auth.role.pojo.Role;
import org.lyq.erp.config.exception.errorbasics.ErrorMessageBasics;
import org.lyq.erp.utils.excel.ExcelResources;
import org.lyq.erp.utils.format.FormatUtils;
/**
 * 员工模块的model类
* @ClassName: Employee
* @Description:
* @author LYQ(廖先生)
* @date 2017年12月15日 下午10:18:56
*
 */
public class Employee extends ErrorMessageBasics{
	
    private Integer empUuid;
   
    private String empUsername;

    private String empPassword;
   
    private String empName;
    
    private String empTele;
    
    private String empEmail;
    
    private String empAddress;
    
    private String empIdcard;

    private Integer empGender;
   
    private Integer empAge;
    
    private String empDegree;

    private String empPictures;

    private String empLoginip;

    private Long empLastlogintime;
   
    private String empBirthday;

    private Long createtime;

    private Long updatetime;

    private Integer status;

    private Integer depuuid;
    
    private Integer groupUuid;
    
    private String empGenderView;
   
    private Integer empAge1;
    
    public Integer getGroupUuid() {
		return groupUuid;
	}
    
	public void setGroupUuid(Integer groupUuid) {
		this.groupUuid = groupUuid;
	}

	private String empLastlogintimeView;
    public  Department department;
    private List<Role> roleList;
   
    
	public List<Role> getRoleList() {
		return roleList;
	}

	public void setRoleList(List<Role> roleList) {
		this.roleList = roleList;
	}

	public Integer getEmpAge1() {
		return empAge1;
	}

	public void setEmpAge1(Integer empAge1) {
		this.empAge1 = empAge1;
	}

	public Department getDepartment() {
		return department;
	}

	public void setDepartment(Department department) {
		this.department = department;
	}
	 @ExcelResources(title="员工性别",order=7)
	public String getEmpGenderView() {
		return empGenderView;
	}

	public void setEmpGenderView(String empGenderView) {
		this.empGenderView = empGenderView;
	}


	public String getEmpLastlogintimeView() {
		return empLastlogintimeView;
	}

	public void setEmpLastlogintimeView(String empLastlogintimeView) {
		this.empLastlogintimeView = empLastlogintimeView;
	}
	
	public Integer getEmpUuid() {
        return empUuid;
    }

    public void setEmpUuid(Integer empUuid) {
        this.empUuid = empUuid;
    }
    @ExcelResources(title="用户名",order=1)
    public String getEmpUsername() {
        return empUsername;
    }

    public void setEmpUsername(String empUsername) {
        this.empUsername = empUsername == null ? null : empUsername.trim();
    }

    public String getEmpPassword() {
        return empPassword;
    }

    public void setEmpPassword(String empPassword) {
        this.empPassword = empPassword == null ? null : empPassword.trim();
    }
    @ExcelResources(title="员工姓名",order=2)
    public String getEmpName() {
        return empName;
    }
    
    public void setEmpName(String empName) {
        this.empName = empName == null ? null : empName.trim();
    }
    @ExcelResources(title="员工电话",order=3)
    public String getEmpTele() {
        return empTele;
    }
   
    public void setEmpTele(String empTele) {
        this.empTele = empTele == null ? null : empTele.trim();
    }
    @ExcelResources(title="员工邮箱",order=4)
    public String getEmpEmail() {
        return empEmail;
    }

    public void setEmpEmail(String empEmail) {
        this.empEmail = empEmail == null ? null : empEmail.trim();
    }
    @ExcelResources(title="员工地址",order=5)
    public String getEmpAddress() {
        return empAddress;
    }

    public void setEmpAddress(String empAddress) {
        this.empAddress = empAddress == null ? null : empAddress.trim();
    }
    @ExcelResources(title="员工身份证",order=6)
    public String getEmpIdcard() {
        return empIdcard;
    }

    public void setEmpIdcard(String empIdcard) {
        this.empIdcard = empIdcard == null ? null : empIdcard.trim();
    }

    public Integer getEmpGender() {
        return empGender;
    }

    public void setEmpGender(Integer empGender) {
        this.empGender = empGender;
        if(empGender!=null) {
        	if(empGender==1) {
        		this.empGenderView="男";
        	}else {
        		this.empGenderView="女";
        	}
        }
    }
    @ExcelResources(title="员工年龄",order=8)
    public Integer getEmpAge() {
        return empAge;
    }

    public void setEmpAge(Integer empAge) {
        this.empAge = empAge;
    }
    @ExcelResources(title="员工学位",order=9)
    public String getEmpDegree() {
        return empDegree;
    }

    public void setEmpDegree(String empDegree) {
        this.empDegree = empDegree == null ? null : empDegree.trim();
    }

    public String getEmpPictures() {
        return empPictures;
    }

    public void setEmpPictures(String empPictures) {
        this.empPictures = empPictures == null ? null : empPictures.trim();
    }

    public String getEmpLoginip() {
        return empLoginip;
    }

    public void setEmpLoginip(String empLoginip) {
        this.empLoginip = empLoginip == null ? null : empLoginip.trim();
    }

    public Long getEmpLastlogintime() {
        return empLastlogintime;
    }

    public void setEmpLastlogintime(Long empLastlogintime) {
        this.empLastlogintime = empLastlogintime;
        if(empLastlogintime!=null) {
        	this.empLastlogintimeView=FormatUtils.getFormatDateTime(empLastlogintime);
        }
    }
    @ExcelResources(title="员工生日",order=10)
    public String getEmpBirthday() {
        return empBirthday;
    }

    public void setEmpBirthday(String empBirthday) {
        this.empBirthday = empBirthday;
       
    }

    public Long getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Long createtime) {
        this.createtime = createtime;
    }

    public Long getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Long updatetime) {
        this.updatetime = updatetime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    @ExcelResources(title="所属部门id编号",order=11)
    public Integer getDepuuid() {
        return depuuid;
    }

    public void setDepuuid(Integer depuuid) {
        this.depuuid = depuuid;
    }
}